#include <stdio.h>
#include <stdlib.h>

/* fgets vs gets */
int main()
{
	char buf[1024];
	int num;
	printf("Test fgets: Input some data, press Enter to end the input\n");

	fgets(buf, 1024, stdin);

	printf("You input: %s", buf);

	printf("Test gets: Input some data, press Enter to end the input\n");

	gets(buf);

	printf("You input: %s", buf);

	return 0;

}
